package com.gameObjects;

import com.badlogic.androidgames.framework.gl.Camera2D;
import com.badlogic.androidgames.framework.gl.SpriteBatcher;
import com.badlogic.androidgames.framework.gl.TextureRegion;
import com.baseinfinityrun.Assets;

public class Barrier extends Obstacle
{		
	public Barrier(float x, float y, float w, float h)
	{
		super(x, y, w, h);
		this.tag = "barrier";
		image = Assets.barrel;
	}
	
	public Barrier()
	{
		super();
		this.tag = "barrier";
		this.image = Assets.barrel;
	}
	
	@Override
	public void Draw(SpriteBatcher batcher) 
	{        
        batcher.beginBatch(Assets.obstacles);
        batcher.drawSprite(this.rectCollider.lowerLeft.x, this.rectCollider.lowerLeft.y, this.rectCollider.width, this.rectCollider.height, this.image);
        batcher.endBatch();
	}
}
